#ifndef SYS_ASSERT_H
#define SYS_ASSERT_H
/*
For some reason, assertions does not work in windows.  This is an alternative.
A message box is shown and the program aborts */
#ifdef NDEBUG
#define ASSERT(E) (void(0))
#else
void _sysassert(const char *, const char *, int);
#define ASSERT(E) if (!(E)) _sysassert(#E,__FILE__,__LINE__)
#endif

#endif
